package com.woniu.controller;

import com.woniu.entity.Result;
import com.woniu.pojo.PlatformInformation;
import com.woniu.pojo.ThirdConfiguration;
import com.woniu.service.PlatformInformationService;
import com.woniu.service.ThirdConfigurationService;
import com.woniu.utils.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ma.Lei
 * @description
 * @date 2022/12/30 11:30
 */
@RestController
@RequestMapping("/AboutUs")
@Api(tags = "关于我们控制类")
public class AboutUsController extends BaseController {

    @Autowired
    private PlatformInformationService platformInformationService;

    @ApiOperation("查询关于我们信息")
    @GetMapping("/select")
    public Result selectById(){
        PlatformInformation info = platformInformationService.getById("1");
        return toDataResult(info);
    }
}
